package ru.cannabis.command.response;

import ru.cannabis.command.response.base.JSONResponse;
import ru.cannabis.command.response.bean.JSONCharacter;
import ru.cannabis.game.player.Character;

public class JSONAuthResponse extends JSONResponse
{

	private JSONCharacter player;
	//private int ru.cannabis.game = -1;

	public JSONAuthResponse()
    {
		super("auth");
	}

	public void setPlayer(Character character)
    {
		this.player = new JSONCharacter();

		this.player.id = character.getCharId();
		this.player.nick = character.getNick();
        player.raceId = character.getRaceId();
        player.upsTotal = character.getUpsTotal();
        player.upsFree = character.getUpsFree();
        player.strPoints = character.getStrPoints();
        player.magPoints = character.getMagPoints();
        player.hpPoints = character.getHpPoints();
        player.magicTotal = character.getMagicTotal();
        player.magicFree = character.getMagicFree();
        player.firePoints = character.getFirePoints();
        player.waterPoints = character.getWaterPoints();
        player.earthPoints = character.getEarthPoints();
        player.airPoints = character.getAirPoints();
        player.money = character.getMoney();
        player.specialMoney = character.getSpecialMoney();
	}

	public JSONCharacter getPlayer()
    {
		return player;
	}

	/*public void setGame(int ru.cannabis.game) {
		this.ru.cannabis.game = ru.cannabis.game;
	}*/
}
